package com.ruoyi.usermodule.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户表对象 fang_admin
 * 
 * @author ruoyi
 * @date 2025-01-16
 */
public class FangAdmin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** ip */
    @Excel(name = "ip")
    private String regIp;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private Integer regTime;

    /** 登录时间 */
    @Excel(name = "登录时间")
    private Integer lastTime;

    /** 登录ip */
    @Excel(name = "登录ip")
    private String lastIp;

    /** 状态 0禁用 1正常 */
    @Excel(name = "状态 0禁用 1正常")
    private Integer status;

    /** 角色id */
    @Excel(name = "角色id")
    private Integer roleId;

    /** 登录次数 */
    @Excel(name = "登录次数")
    private Integer loginNum;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setRegIp(String regIp) 
    {
        this.regIp = regIp;
    }

    public String getRegIp() 
    {
        return regIp;
    }
    public void setRegTime(Integer regTime) 
    {
        this.regTime = regTime;
    }

    public Integer getRegTime() 
    {
        return regTime;
    }
    public void setLastTime(Integer lastTime) 
    {
        this.lastTime = lastTime;
    }

    public Integer getLastTime() 
    {
        return lastTime;
    }
    public void setLastIp(String lastIp) 
    {
        this.lastIp = lastIp;
    }

    public String getLastIp() 
    {
        return lastIp;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setRoleId(Integer roleId) 
    {
        this.roleId = roleId;
    }

    public Integer getRoleId() 
    {
        return roleId;
    }
    public void setLoginNum(Integer loginNum) 
    {
        this.loginNum = loginNum;
    }

    public Integer getLoginNum() 
    {
        return loginNum;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("email", getEmail())
            .append("regIp", getRegIp())
            .append("regTime", getRegTime())
            .append("lastTime", getLastTime())
            .append("lastIp", getLastIp())
            .append("status", getStatus())
            .append("roleId", getRoleId())
            .append("loginNum", getLoginNum())
            .append("phone", getPhone())
            .toString();
    }
}
